package com.dnjn.happiness.cms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * Banner
 * </p>
 *
 * @author Amber
 * @since 2023-10-10
 */
@Getter
@Setter
@TableName("cms_banner")
public class Banner extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "banner_id", type = IdType.ASSIGN_ID)
    private Long bannerId;

    /** 厂区id */
    private Long siteId;

    

    /**
     * 主题
     */
    private String topic;

    private Long articleId;

    /**
     * cms_article.title
     */
    private String articleTitle;

    /**
     * 主图
     */
    private String coverUrl;

    /**
     * 首页显示开关Y-N
     */
    private String showable;

    /**
     * 跳转开关
     */
    private String gotoFlag;

    private LocalDateTime dateStart;

    private LocalDateTime dateEnd;

    /**
     * 是否删除|0-否 1-是|valid
     */
//    @TableLogic
    private String deleted;
}
